<template>
	<view>
		<!--  #ifdef MP-ALIPAY -->
		<uni-nav-bar left-icon=" " dark :fixed="true" :color="color" :border="false" :background-color="background"
			status-bar :title="title" @clickLeft="back" />
		<!-- #endif -->
		<!-- #ifdef MP-WEIXIN -->
		<uni-nav-bar dark :fixed="true" :color="color" :border="false" :background-color="background" status-bar
			left-icon="left" :title="title" @clickLeft="back" />
		<!-- #endif -->

	</view>
</template>

<script>
	export default {
		props: {
			title: {
				type: String,
				default: ''
			},
			background: {
				type: String,
				default: '#fff'
			},
			color: {
				type: String,
				default: '#000'
			}
		},
		name: "navBar",
		data() {
			return {

			};
		},
		methods: {
			back() {
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss" scoped>

</style>